package com.wdz.article.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.wdz.article.entity.Article;
import com.wdz.article.mapper.primary.ArticleMapper;
import com.wdz.article.service.IArticleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 文章列表 服务实现类
 * </p>
 *
 * @author 吴传逞
 * @since 2020-11-04
 */
@Service("ArticleServiceImpl")
public class ArticleServiceImpl extends ServiceImpl<ArticleMapper, Article> implements IArticleService {
    @Resource
    private ArticleMapper articleMapper;

    @Override
    public int likeTitleCount(String name) {
        return articleMapper.likeTitleCount(name);
    }
}
